<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
	<title>凯盛项目管理系统</title>
	<style type="text/css">
		body{
			background-image:url(img/bg3.jpg);
			padding-top:50px;
		}
		.wall {
			-moz-border-bottom-colors: none;
			-moz-border-image: none;
			-moz-border-left-colors: none;
			-moz-border-right-colors: none;
			-moz-border-top-colors: none;
			border-color: -moz-use-text-color #DDDDDD #DDDDDD;
			border: 1px solid #DDDDDD;
			border-style: none solid solid;
			border-width: medium 1px 1px;
			padding: 15px;
		}
	</style>
</head>
<body class="body">
	
	<%@ include file="include/top.jsp" %>
	
	<div class="container">
		<div class="row">
			<div class="span10">
				<div class="page-header">
					<h1>项目列表</h1>
				</div>
				
				<%--如果登陆的是admin,则显示开始一个新项目和创建新用户连接，如果不是admin，则用户看不到此连接 --%>
				<c:if test="${sessionScope.user.username eq 'admin' }">
					<a href="logic.jspx?m=new_project" class="btn btn-success"><i class="icon-plus icon-white"></i>开始一个新项目</a>
					<a href="logic.jspx?m=createuser" class="btn btn-info pull-right"><i class="icon-plus icon-white"></i>创建新成员</a>		
				</c:if>
				
				<c:if test="${empty requestScope.projectList }">
					<script type="text/javascript">
						alert("您还没参与任何项目");
					</script>
				</c:if>
				
				<c:forEach items="${requestScope.projectList }" var="project">
					<ul class="breadcrumb" style="margin-top:20px;margin-bottom:0px;border-radius: 20px 20px 0 0;">
						<li class="active">
							<a href="project.jspx?id=${project.proId }"><i class="icon-th"></i>${project.proName }</a>
						</li>
					</ul>
					<div class="wall">
						<p>${project.describe }</p>
					</div>
				</c:forEach>
				
				
			</div>
		</div>
	</div>
	
</body>
</html>